<template>
  <div class="layout-page">
    <router-view></router-view>

    <!-- <div>底部tabbar - 区域 -->
    <van-tabbar v-model="active" route class="bottom-tabbar">
      <van-tabbar-item to="/article" icon="balance-list-o">面经</van-tabbar-item>
      <van-tabbar-item to="/collect" icon="search">收藏</van-tabbar-item>
      <van-tabbar-item to="/like" icon="good-job-o">点赞</van-tabbar-item>
      <van-tabbar-item to="/user" icon="contact-o">我的</van-tabbar-item>
    </van-tabbar>
    <!-- </div> -->
  </div>
</template>

<script>
export default {
  name: 'LayoutPage',
  data () {
    return {
      active: 0
    }
  }
}
</script>

<style lang="less" scoped>
.layout-page {
  text-align: left; // 添加: 使内容靠左显示
}

.bottom-tabbar {
  position: fixed;
  bottom: 0;
  width: 100%;
}

</style>
